using Common.NotifyEvent;
using SProject;

namespace MainView.View
{
	internal class ProjectEnabled : NotifyPropertyChanged
	{
		private Project _Project;

		private bool _IsEnabled = true;

		private bool _IsChecked;

		public Project Project
		{
			get
			{
				return _Project;
			}
			set
			{
				_Project = value;
				OnPropertyChanged("Project");
			}
		}

		public bool IsEnabled
		{
			get
			{
				return _IsEnabled;
			}
			set
			{
				if (_IsEnabled != value)
				{
					_IsEnabled = value;
					OnPropertyChanged("IsEnabled");
				}
			}
		}

		public bool IsChecked
		{
			get
			{
				return _IsChecked;
			}
			set
			{
				if (_IsChecked != value)
				{
					_IsChecked = value;
					OnPropertyChanged("IsChecked");
				}
			}
		}
	}
}
